<?php
include('util/bloqueDeSeguridad.php');

$titPage = "Provincia";

$tituloSistema = "Administraci&oacute;n de Ventas";
$tituloPagina = "Par&aacute;metros del Sistema - " . $titPage;

$tituloNuevo = "\"Nueva $titPage\"";
$tituloBorrar = "\"Borrar $titPage\"";
$tituloEditar = "\"Editar $titPage\"";

$paginaSorting = "'Descripcion'";

$paginaDatos = "'UsuarioBLL.php'";
$paginaAccion = "'UsuarioGrid.php'";


$colNames = "[";
$colNames .= "'ID', 'NickName', 'Nombre Apellido', 'DNI', 'Email', 'Admin', 'Borrado', 'Password'";
$colNames .= "]";

//{name: 'isAdmin', index: 'isAdmin', width: 200, template: yesNoTemplate, search:false, hidden:false, editrules:{required:true}, editable: true, edittype: 'checkbox', formatter: 'checkbox'  },

$colModel = "[
    {name:'idUsuario',index:'idUsuario', width:60, search:false, hidden:true, key:true,editable: true},
    {name: 'NickName', index: 'NickName', width: 200, search:true, editrules:{required:true, minValue:5, maxValue:100} ,editable: true},
    {name: 'NombreApellido', index: 'NombreApellido', width: 200, search:true, editrules:{required:true, minValue:5, maxValue:200} , editable: true},
    {name: 'DNI', index: 'DNI', width: 100, search:true, editrules:{required:true, minValue:0, maxValue:999999999, integer:true}, editable: true},
    {name: 'Email', index: 'Email', width: 300, search:true, editrules:{required:false, email:true},editable: true},
		{name: 'isAdmin', index: 'isAdmin', width: 200, template: yesNoTemplate, search:false, hidden:true },
    {name: 'isBorrado', index: 'isBorrado', width: 200, template: yesNoTemplate, search:false, hidden:true },
    {name: 'Password', index: 'Password', width: 200, search:false, hidden:true, editrules:{required:true}, editable: true }
    ]"
;

require_once('util/paginaGrilla.php');

?>